package com.fp.m7.shared.services;

import java.util.Date;
import java.util.List;

import com.fp.m7.shared.dto.CommentDto;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the Comments RPC service.
 */
@RemoteServiceRelativePath("springGwtServices/comments")
public interface CommentService extends RemoteService {

    // unsecured:
    List<CommentDto> blog(String nickname, int pageNumber);

    List<CommentDto> blog(String nickname, Date from, Date to);

    // secured:
    List<CommentDto> blog(int pageNumber);

    List<CommentDto> blog(Date from, Date to);

    List<CommentDto> timeline(int pageNumber);

    Boolean postComment(String content);

    Boolean deleteComment(CommentDto commentDto);

}
